<?php
/**
 * Created by PhpStorm.
 * User: allen_ios
 * Date: 17/7/13
 * Time: 下午1:51
 */

namespace Task\App\Base;


use Task\Core\Base;

class Demo extends Base
{
    public function getArgvs($accountId,$username)
    {
        echo $accountId."\n";
        echo $username."\n";

        print_r($_SERVER['argv']);
    }

    /**
     * 获取楼幢
     */
    public function getBuild()
    {
        $buildDao = new BuildBaseInfo();
        $buildInfo = $buildDao->getBuildInfo(3335);
        cdump($buildInfo);
    }

    /**
     * 获取园区
     */
    public function getCommunity()
    {
        $buildDao = new BuildBaseInfo();
        $commInfo = $buildDao->getCommunityInfo(117);
        cdump($commInfo);
    }
}